package com.atguigu.educenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author shkstart
 * @create 2022-07-21 21:32
 */
@EnableDiscoveryClient//nacos注册，不用加也可以，默认开启,做远程调用
@EnableFeignClients//服务调用
@SpringBootApplication//取消数据源自动配置
@ComponentScan(basePackages = {"com.atguigu"})//需要扫描的包
@MapperScan("com.atguigu.educenter.mapper")//写到配置类也可以
public class ServiceUcApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceUcApplication.class, args);
    }
}
